home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 19.zip / BS1 part 19 / Lattice C disk 4.adf / Compiler_Headers / exec / devices.h < prev    next >
C/C++ Source or Header  |  1988-10-25  |  867b  |  44 lines

  1. #ifndef EXEC_DEVICES_H
  2. #define EXEC_DEVICES_H
  3. /*
  4. **    $Filename: exec/devices.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_LIBRARIES_H
  14. #include "exec/libraries.h"
  15. #endif !EXEC_LIBRARIES_H
  16.  
  17. #ifndef EXEC_PORTS_H
  18. #include "exec/ports.h"
  19. #endif !EXEC_PORTS_H
  20.  
  21.  
  22. /****** Device ******************************************************/
  23.  
  24. struct Device { 
  25.     struct  Library dd_Library;
  26. };
  27.  
  28.  
  29. /****** Unit ********************************************************/
  30.  
  31. struct Unit {
  32.     struct  MsgPort unit_MsgPort;    /* queue for unprocessed messages */
  33.                     /* instance of msgport is recommended */
  34.     UBYTE   unit_flags;
  35.     UBYTE   unit_pad;
  36.     UWORD   unit_OpenCnt;        /* number of active opens */
  37. };
  38.  
  39.  
  40. #define UNITF_ACTIVE    (1<<0)
  41. #define UNITF_INTASK    (1<<1)
  42.  
  43. #endif    /* EXEC_DEVICES_H */
  44.